package jobascjp;

class Alpha {
    static String s = "";
    protected Alpha() { s += "alpha "; }
}

class SubAlpha extends Alpha {
    private SubAlpha() {
        s += "sub ";
    }
}

public class SubSubAlpha extends Alpha {
    private SubSubAlpha(){ s += "subsub "; }
    public static void main(String[] args) {
        new SubSubAlpha();
        System.out.println(s);
    }
    /*
     * What is the result?
     * subsub.
     * sub subsub
     * alpha subsub // korrekt
     * alpha sub subsub
     * Compilation fails
     * An exception is thrown at runtime.
     * 
     * 
     */
}
